<?php

defined('YII_DEBUG') or define('YII_DEBUG',true);

if(YII_DEBUG){
	error_reporting(E_ALL);
	ini_set('display_errors','On');
	defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
}else{
	error_reporting(0);
	ini_set('display_errors','Off');
	defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0);
}

require(dirname(__FILE__) . '/framework/YiiBase.php');

class Yii extends YiiBase {
	/**
	 * @static
	 * @return CWebApplication
	 */
	public static function app()
	{
		return parent::app();
	}
}

$config = dirname(__FILE__).'/protected/config/main.php';
$app = Yii::createWebApplication($config)->run();